﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Milestone.ComponentModel;
using Topics.Radical.Windows.Presentation;

namespace Milestone.Presentation.Partial.Tasks
{
	class TasksViewModel : AbstractViewModel
	{
		public TasksViewModel( ComponentModel.IUserTask[] tasks )
		{
			this.Tasks = tasks.GroupBy( t => t.Category ).OrderBy( g => g.Key );
		}

		public IEnumerable<IGrouping<String, ComponentModel.IUserTask>> Tasks
		{
			get;
			private set;
		}
	}
}
